package com.cy.teducommunitys.com.cy.mapper;

import com.cy.teducommunitys.com.cy.entity.Authority;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色权限表 Mapper 接口
 * </p>
 *
 * @author mdzz
 * @since 2019-07-19
 */
public interface AuthorityMapper extends BaseMapper<Authority> {
    public int insertObject(@Param("roleId") Integer roleId, @Param("menuIds") Integer[] menuIds,@Param("createdUser") String createdUser);
    @Delete("delete from authority where roleId=#{roleId}")
    public int deleteObject(@Param("roleId") Integer roleId);
    int[] findMenusByRoleId(Integer roleId);
}
